server recv:

USER:

REGISTER
user-name:xxxxxx
user-passwd:xxxxxxx

response:
RESPONSE-REGISTER 
OK

RESPONSE-REGISTER 
ERROR:xxxxxxx

LOGIN
user-name:xxxxxx
user-passwd:xxxxxxx

response:
RESPONSE-LOGIN
OK
ERROR:xxxxxx

QUERY

response:
RESPONSE-QUERY
device-name:xxxxx
device-name:xxxxx
device-name:xxxxx

MESSAGE 
dst-device-name:xxxxx

response:
RESPONSE-MESSAGE
OK

response:
RESPONSE-MESSAGE
ERROR:xxxxxxxx

DELETE-DEVICE
device-name:xxxxx

response:
RESPONSE-DELETE-DEVICE
OK

response:
RESPONSE-DELETE-DEVICE
ERROR:xxxxxx

DEVICE:

CONNECT
user-name:xxxxxx
user-passwd:xxxxxx
device-name:xxxxxxx

response:
RESPONSE-CONNECT
OK

response:
RESPONSE-CONNECT
ERROR:xxxxxxx

response:
MESSAGE
user-name:xxxxx
message:xxxxx